//
//  CLFormData.h
//  togetherLBS
//
//  Created by louis on 15/8/13.
//  Copyright (c) 2015年 celi. All rights reserved.
//  用来封装文件数据的模型

#import <Foundation/Foundation.h>

@interface CLFormData : NSObject
/**
 *  文件数据
 */
@property (nonatomic, strong) NSData *data;

/**
 *  参数名
 */
@property (nonatomic, copy) NSString *name;

/**
 *  文件名
 */
@property (nonatomic, copy) NSString *filename;

/**
 *  文件类型
 */
@property (nonatomic, copy) NSString *mimeType;

+ (instancetype)data;
@end

@interface CLJPEGFormData : CLFormData
@property (nonatomic, strong) UIImage *image;

+ (instancetype)dataWithImage:(UIImage *)image;
@end

@interface CLVoiceFormData : CLFormData
@property (nonatomic, copy) NSString *voiceFilePath;
@end
